﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.GridManger.Domain.Entities
{
 

    /// <summary>
    /// 所有实体的父类 
    /// </summary>
    public class BaseEntity
    {
        /// <summary>
        /// long 类型的主键id
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]//主键id 由程序自己指定,例如雪花id guid
        public long Id { get; set; }
        /// <summary>
        /// 逻辑删除 true:已逻辑删除  false:没有删除
        /// </summary>
        public bool IsDeleted { get; set; }
    }
}
